﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace OpenClient
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {

            string website = Application.StartupPath;
            string bcd = website + "\\demo.xml";
            // filexml.ReadNode(website);
            try
            {
                System.Diagnostics.Process.Start("firefox.exe", bcd);
                MessageBox.Show("Mở đc rồi đấy cưng");
            }
            catch (Exception)
            {
                MessageBox.Show(this, "Chưa có file cần mở trong thư mục bin/debug....", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }

        }
    }
}
